package com.tiennt.android.smartcaller;

import com.tiennt.android.smartcaller.utils.SmartCallerUtils;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

public class InCallActivity extends Activity {

	private ImageView imgContactImage;
	private TextView txtTimer;
	private TextView txtContactName;
	private Button btnEndCall, btnAddNote, btnMute, btnSpeaker;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);

		setContentView(R.layout.on_anwering);
		SmartCallerUtils.log("**********______IN CALL ACTIVITY________********************");

		init();
	}

	private void init() {
		imgContactImage = (ImageView) findViewById(R.id.imgViewContactImage);
		txtTimer = (TextView) findViewById(R.id.txtTimer);
		txtContactName = (TextView) findViewById(R.id.txtIncomingContact);
		btnAddNote = (Button) findViewById(R.id.btnAddNote);
		btnEndCall = (Button) findViewById(R.id.btnEndCall);
		btnMute = (Button) findViewById(R.id.btnMute);
		btnSpeaker = (Button) findViewById(R.id.btnSpeaker);

		initTextViewResource();
		setEventHandler();
	}

	private void initTextViewResource() {
		Bundle bundle = getIntent().getExtras();
		String contactId = bundle.getString("contactId");
		if (!contactId.equals("")) {
			
		}
	}

	private void setEventHandler() {
		btnAddNote.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub

			}
		});

		btnEndCall.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub

			}
		});

		btnMute.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub

			}
		});

		btnSpeaker.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub

			}
		});
	}

}
